.class public Lcom/nbi/map/search/movie/MovieSearchRequest;
.super Lcom/nbi/map/search/SearchRequest;

# interfaces
.implements Lcom/nbi/common/NBIObject;


# static fields
.field public static final MOVIE_GENRE_ACTION_ADVENTURE:Ljava/lang/String; = "GAA"

.field public static final MOVIE_GENRE_ALL:Ljava/lang/String; = "All"

.field public static final MOVIE_GENRE_COMEDY:Ljava/lang/String; = "GCO"

.field public static final MOVIE_GENRE_DRAMA_ROMANCE:Ljava/lang/String; = "GDR"

.field public static final MOVIE_GENRE_FAMILY:Ljava/lang/String; = "GFA"

.field public static final MOVIE_GENRE_FOREIGN_DOCUMENTARY:Ljava/lang/String; = "GFD"

.field public static final MOVIE_GENRE_HORROR_SCIENCE_FICTION:Ljava/lang/String; = "GHS"

.field public static final MOVIE_SHOWING_COMING_SOON:Ljava/lang/String; = "ComingSoon"

.field public static final MOVIE_SHOWING_NOW_IN_THEATER:Ljava/lang/String; = "NowInTheater"

.field public static final MOVIE_SHOWING_OPENING_THIS_WEEK:Ljava/lang/String; = "OpeningThisWeek"

.field public static final MOVIE_SHOWING_TOP_BOX_OFFICE:Ljava/lang/String; = "TopBoxOffice"

.field public static final MOVIE_SORT_ALPHABETICAL:Ljava/lang/String; = "Alphabetical"

.field public static final MOVIE_SORT_MOST_POPULAR:Ljava/lang/String; = "MostPopular"

.field public static final MOVIE_SORT_MOST_RECENT:Ljava/lang/String; = "MostRecent"


# instance fields
.field private J:Lnbisdk/ak;


# direct methods
.method public constructor <init>(Lcom/nbi/common/NBIContext;Lcom/nbi/map/data/SearchRegion;Ljava/lang/String;[Ljava/lang/String;Ljava/util/Date;Ljava/util/Date;Ljava/lang/String;Ljava/lang/String;IILcom/nbi/map/search/movie/MovieSearchListener;)V
    .locals 11

    invoke-direct {p0}, Lcom/nbi/map/search/SearchRequest;-><init>()V

    if-eqz p1, :cond_5

    if-eqz p2, :cond_5

    const/4 v4, -0x2

    move/from16 v0, p9

    move v1, v4

    if-le v0, v1, :cond_5

    if-eqz p11, :cond_5

    new-instance v4, Lnbisdk/eb;

    new-instance v5, Lnbisdk/cs;

    invoke-virtual {p2}, Lcom/nbi/map/data/SearchRegion;->getCenter()Lcom/nbi/map/data/Coordinates;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nbi/map/data/Coordinates;->getLatitude()D

    move-result-wide v6

    invoke-virtual {p2}, Lcom/nbi/map/data/SearchRegion;->getCenter()Lcom/nbi/map/data/Coordinates;

    move-result-object v8

    invoke-virtual {v8}, Lcom/nbi/map/data/Coordinates;->getLongitude()D

    move-result-wide v8

    invoke-direct {v5, v6, v7, v8, v9}, Lnbisdk/cs;-><init>(DD)V

    invoke-direct {v4, v5}, Lnbisdk/eb;-><init>(Lnbisdk/br;)V

    invoke-virtual {p2}, Lcom/nbi/map/data/SearchRegion;->getBoundingBox()Lcom/nbi/map/data/BoundingBox;

    move-result-object v5

    if-eqz v5, :cond_0

    invoke-virtual {p2}, Lcom/nbi/map/data/SearchRegion;->getBoundingBox()Lcom/nbi/map/data/BoundingBox;

    move-result-object v5

    invoke-virtual {v5}, Lcom/nbi/map/data/BoundingBox;->getPoint1()Lcom/nbi/map/data/Coordinates;

    move-result-object v5

    if-eqz v5, :cond_0

    invoke-virtual {p2}, Lcom/nbi/map/data/SearchRegion;->getBoundingBox()Lcom/nbi/map/data/BoundingBox;

    move-result-object v5

    invoke-virtual {v5}, Lcom/nbi/map/data/BoundingBox;->getPoint2()Lcom/nbi/map/data/Coordinates;

    move-result-object v5

    if-eqz v5, :cond_0

    new-instance v5, Lnbisdk/cs;

    invoke-virtual {p2}, Lcom/nbi/map/data/SearchRegion;->getBoundingBox()Lcom/nbi/map/data/BoundingBox;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nbi/map/data/BoundingBox;->getPoint1()Lcom/nbi/map/data/Coordinates;

    move-result-object v6

    invoke-virtual {v6}, Lcom/nbi/map/data/Coordinates;->getLatitude()D

    move-result-wide v6

    invoke-virtual {p2}, Lcom/nbi/map/data/SearchRegion;->getBoundingBox()Lcom/nbi/map/data/BoundingBox;

    move-result-object v8

    invoke-virtual {v8}, Lcom/nbi/map/data/BoundingBox;->getPoint1()Lcom/nbi/map/data/Coordinates;

    move-result-object v8

    invoke-virtual {v8}, Lcom/nbi/map/data/Coordinates;->getLongitude()D

    move-result-wide v8

    invoke-direct {v5, v6, v7, v8, v9}, Lnbisdk/cs;-><init>(DD)V

    new-instance v6, Lnbisdk/cs;

    invoke-virtual {p2}, Lcom/nbi/map/data/SearchRegion;->getBoundingBox()Lcom/nbi/map/data/BoundingBox;

    move-result-object v7

    invoke-virtual {v7}, Lcom/nbi/map/data/BoundingBox;->getPoint2()Lcom/nbi/map/data/Coordinates;

    move-result-object v7

    invoke-virtual {v7}, Lcom/nbi/map/data/Coordinates;->getLatitude()D

    move-result-wide v7

    invoke-virtual {p2}, Lcom/nbi/map/data/SearchRegion;->getBoundingBox()Lcom/nbi/map/data/BoundingBox;

    move-result-object v9

    invoke-virtual {v9}, Lcom/nbi/map/data/BoundingBox;->getPoint2()Lcom/nbi/map/data/Coordinates;

    move-result-object v9

    invoke-virtual {v9}, Lcom/nbi/map/data/Coordinates;->getLongitude()D

    move-result-wide v9

    invoke-direct {v6, v7, v8, v9, v10}, Lnbisdk/cs;-><init>(DD)V

    invoke-virtual {v4, v5, v6}, Lnbisdk/eb;->a(Lnbisdk/cs;Lnbisdk/cs;)V

    :cond_0
    if-eqz p4, :cond_1

    const/4 v5, 0x0

    :goto_0
    array-length v6, p4

    if-ge v5, v6, :cond_1

    aget-object v6, p4, v5

    invoke-virtual {v4, v6}, Lnbisdk/eb;->B(Ljava/lang/String;)V

    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    :cond_1
    invoke-virtual {v4, p3}, Lnbisdk/eb;->L(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcom/nbi/common/NBIContext;->getInternalObject()Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Lnbisdk/bl;

    invoke-virtual {p2}, Lnbisdk/bl;->df()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Lnbisdk/eb;->d(Ljava/lang/String;)V

    if-eqz p5, :cond_2

    invoke-virtual/range {p5 .. p5}, Ljava/util/Date;->getTime()J

    move-result-wide v5

    invoke-static {v5, v6}, Lnbisdk/pb;->getGpsServerTimeFromJavaTime(J)I

    move-result v5

    int-to-long v5, v5

    invoke-virtual {v4, v5, v6}, Lnbisdk/eb;->setStartTime(J)V

    :cond_2
    if-eqz p6, :cond_3

    invoke-virtual/range {p6 .. p6}, Ljava/util/Date;->getTime()J

    move-result-wide v5

    invoke-static {v5, v6}, Lnbisdk/pb;->getGpsServerTimeFromJavaTime(J)I

    move-result v5

    int-to-long v5, v5

    invoke-virtual {v4, v5, v6}, Lnbisdk/eb;->b(J)V

    :cond_3
    move-object v0, v4

    move-object/from16 v1, p7

    invoke-virtual {v0, v1}, Lnbisdk/eb;->D(Ljava/lang/String;)V

    move-object v0, v4

    move-object/from16 v1, p8

    invoke-virtual {v0, v1}, Lnbisdk/eb;->C(Ljava/lang/String;)V

    move-object v0, v4

    move/from16 v1, p9

    invoke-virtual {v0, v1}, Lnbisdk/eb;->S(I)V

    packed-switch p10, :pswitch_data_0

    :pswitch_0
    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-virtual {v4, v5, v6, v7}, Lnbisdk/eb;->a(ZZZ)V

    :goto_1
    move-object v0, p0

    move-object v1, p1

    move-object/from16 v2, p11

    move-object v3, v4

    invoke-direct {v0, v1, v2, v3}, Lcom/nbi/map/search/movie/MovieSearchRequest;->a(Lcom/nbi/common/NBIContext;Lcom/nbi/map/search/movie/MovieSearchListener;Lnbisdk/eb;)V

    :cond_4
    return-void

    :pswitch_1
    const/4 v5, 0x0

    const/4 v6, 0x0

    const/4 v7, 0x1

    invoke-virtual {v4, v5, v6, v7}, Lnbisdk/eb;->a(ZZZ)V

    goto :goto_1

    :pswitch_2
    const/4 v5, 0x0

    const/4 v6, 0x1

    const/4 v7, 0x0

    invoke-virtual {v4, v5, v6, v7}, Lnbisdk/eb;->a(ZZZ)V

    goto :goto_1

    :cond_5
    if-nez p1, :cond_6

    new-instance v4, Ljava/lang/IllegalArgumentException;

    const-string v5, "context is null"

    invoke-direct {v4, v5}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v4

    :cond_6
    if-nez p2, :cond_7

    new-instance v4, Ljava/lang/IllegalArgumentException;

    const-string v5, "region is null"

    invoke-direct {v4, v5}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v4

    :cond_7
    const/4 v4, -0x1

    move/from16 v0, p9

    move v1, v4

    if-ge v0, v1, :cond_8

    new-instance v4, Ljava/lang/IllegalArgumentException;

    const-string v5, "sliceSize is incorrect"

    invoke-direct {v4, v5}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v4

    :cond_8
    if-nez p11, :cond_4

    new-instance v4, Ljava/lang/IllegalArgumentException;

    const-string v5, "listener is null"

    invoke-direct {v4, v5}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v4

    :pswitch_data_0
    .packed-switch 0x2
        :pswitch_2
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public constructor <init>(Lcom/nbi/common/NBIContext;Lcom/nbi/map/search/movie/MovieSearchRequest;Lcom/nbi/map/search/movie/MovieSearchInformation;BLcom/nbi/map/search/movie/MovieSearchListener;)V
    .locals 2

    invoke-direct {p0}, Lcom/nbi/map/search/SearchRequest;-><init>()V

    if-eqz p1, :cond_1

    if-eqz p2, :cond_1

    if-eqz p3, :cond_1

    if-eqz p5, :cond_1

    invoke-virtual {p2}, Lcom/nbi/map/search/movie/MovieSearchRequest;->getInternalObject()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/ak;

    invoke-virtual {v0}, Lnbisdk/ak;->Z()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/eb;

    invoke-interface {p3}, Lcom/nbi/map/search/movie/MovieSearchInformation;->getInternalObject()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lnbisdk/ol;

    invoke-virtual {v0, p4, v1}, Lnbisdk/eb;->a(BLnbisdk/rn;)V

    invoke-direct {p0, p1, p5, v0}, Lcom/nbi/map/search/movie/MovieSearchRequest;->a(Lcom/nbi/common/NBIContext;Lcom/nbi/map/search/movie/MovieSearchListener;Lnbisdk/eb;)V

    :cond_0
    return-void

    :cond_1
    if-nez p1, :cond_2

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "context is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_2
    if-nez p2, :cond_3

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "request is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_3
    if-nez p3, :cond_4

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "information is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_4
    if-nez p5, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "listener is null"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0
.end method

.method private a(Lcom/nbi/common/NBIContext;Lcom/nbi/map/search/movie/MovieSearchListener;Lnbisdk/eb;)V
    .locals 3

    new-instance v0, Lcom/nbi/map/search/movie/a;

    invoke-direct {v0, p0, p2}, Lcom/nbi/map/search/movie/a;-><init>(Lcom/nbi/map/search/movie/MovieSearchRequest;Lcom/nbi/map/search/movie/MovieSearchListener;)V

    invoke-virtual {p1}, Lcom/nbi/common/NBIContext;->getInternalObject()Ljava/lang/Object;

    invoke-static {}, Lnbisdk/bl;->gR()Lcom/navbuilder/nb/f;

    move-result-object v1

    new-instance v2, Lnbisdk/ni;

    invoke-direct {v2, v0}, Lnbisdk/ni;-><init>(Lnbisdk/gh;)V

    invoke-static {v2, v1}, Lnbisdk/fp;->a(Lnbisdk/kk;Lcom/navbuilder/nb/f;)Lnbisdk/df;

    move-result-object v0

    new-instance v1, Lnbisdk/ak;

    invoke-direct {v1, v0, p3}, Lnbisdk/ak;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    iput-object v1, p0, Lcom/nbi/map/search/movie/MovieSearchRequest;->J:Lnbisdk/ak;

    return-void
.end method


# virtual methods
.method public cancelRequest()V
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/search/movie/MovieSearchRequest;->J:Lnbisdk/ak;

    invoke-virtual {v0}, Lnbisdk/ak;->cancelRequest()V

    return-void
.end method

.method public getInternalObject()Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/search/movie/MovieSearchRequest;->J:Lnbisdk/ak;

    return-object v0
.end method

.method public isRequestInProgress()Z
    .locals 1

    iget-object v0, p0, Lcom/nbi/map/search/movie/MovieSearchRequest;->J:Lnbisdk/ak;

    invoke-virtual {v0}, Lnbisdk/ak;->isRequestInProgress()Z

    move-result v0

    return v0
.end method

.method public startRequest()V
    .locals 2

    iget-object v0, p0, Lcom/nbi/map/search/movie/MovieSearchRequest;->J:Lnbisdk/ak;

    invoke-virtual {v0}, Lnbisdk/ak;->Y()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/df;

    iget-object v1, p0, Lcom/nbi/map/search/movie/MovieSearchRequest;->J:Lnbisdk/ak;

    invoke-virtual {v1}, Lnbisdk/ak;->Z()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lnbisdk/eb;

    invoke-virtual {v0, p0}, Lnbisdk/df;->a(Lnbisdk/ad;)V

    return-void
.end method
